import http from "@/utils/http";

export default {
  namespaced: true,

  state: {
    logList: ""
  },

  mutations: {
    SETPAGEINATE(state, list) {
      state.logList = list;
    }
  },

  actions: {
    getLogList({ commit }, curPage) {
      http
        .post(
          "/api/login/sensitive_operation/get_list?token=2Q3ntNqyo5eaLmXITABb",
          {
            page: curPage,
            pagesize: 10
          }
        )
        .then(response => {
          console.log(response);
          let res = response.data.list;
          commit("SETPAGEINATE", res);
        });
    }
  }
};
